import service from "../utils/server"

let postlink=(url,data)=>{
    return new Promise((resolve,reject)=>{
        service.request({
            url,
            method:"POST",
            // get发送数据
            // data:{你数据的key:val}
              data
        }).then((ok)=>{
            resolve(ok)
        }).catch((err)=>{
            reject(err)
        })
    })
}
export default postlink